<%--
  Created by IntelliJ IDEA.
  User: hqqqqqqqq
  Date: 2020/10/27
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="head">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top"><h1 class="fl"><a href="index.html"><img src="img/logo.png"/></a></h1>
            <div class="fr clearfix" id="top1">
                <p class="fl">
                    <c:if test="${isLogin != 1}">
                        <a href="login.jsp" id="login">登录</a>
                        <a href="reg.jsp" id="reg">注册</a>

                    </c:if>
                    <c:if test="${isLogin == 1}">
                        <b>你好：</b><a href="login.jsp" id="login">${login_user.USER_NAME}</a>

                    </c:if>
                    <c:if test="${isAdmin == 1}">
                        <a href="manageHtml/adminLogin.jsp" id="login">进入后台</a>

                    </c:if>
                </p>
                <form action="#" method="get" class="fl"><input type="text" placeholder="热门搜索：干花花瓶"/><input
                        type="button"/></form>
                <div class="btn fl clearfix">
                    <a href="mygxin.jsp">
                        <img src="img/grzx.png"/>
                    </a>
                    <a href="#" class="er1">
                        <img src="img/ewm.png"/>
                    </a>
                    <c:if test="${isLogin == 1}">
                        <a href="cart.html">
                            <img src="img/gwc.png"/>
                        </a>
                    </c:if>
                    <p><a href="#"><img src="img/smewm.png"/></a></p>
                </div>
            </div>
        </div>
        <ul class="clearfix" id="bott">
            <li><a href="/indexSelect">首页</a></li>

            <c:forEach var="fCate" items="${fatherList}">
                <li><a href="indexSelectCate?fid=${fCate.CATE_ID}">${fCate.CATE_NAME}</a>
                    <div class="sList2">
                        <div class="clearfix">
                            <c:forEach var="cCate" items="${childList}">
                                <c:if test="${cCate.CATE_PARENT_ID == fCate.CATE_ID}">
                                    <a href="indexSelectCate?cid=${cCate.CATE_ID}">${cCate.CATE_NAME}</a>

                                </c:if>
                            </c:forEach>
                        </div>
                    </div>
                </li>

            </c:forEach>


        </ul>
    </div>
</div>
